{"openapi":"3.1.0","info":{"title":"Anilau Site Content API","version":"1.1.0","description":"Manage permitted content, advertisements, translations, prices, covers, and media galleries. Tokens are issued from the profile and remain valid only while the email and profile trust status are eligible."},"servers":[{"url":"\/api\/v1"}],"security":[{"bearerAuth":[]}],"paths":{"\/me":{"get":{"summary":"Verify the API key and current account access","responses":{"200":{"description":"Account context","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Account"}}}}}},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/reference-data":{"get":{"summary":"Load identifiers and enums needed for write requests","parameters":[{"$ref":"#\/components\/parameters\/RequiredLanguage"}],"responses":{"200":{"description":"Reference data","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/ReferenceData"}}}}}},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content":{"get":{"summary":"List content visible through the account's API permissions","parameters":[{"$ref":"#\/components\/parameters\/Language"},{"name":"type","in":"query","schema":{"$ref":"#\/components\/schemas\/ContentType"}},{"$ref":"#\/components\/parameters\/UpdatedAfter"},{"$ref":"#\/components\/parameters\/PerPage"}],"responses":{"200":{"description":"Paginated content","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ContentCollection"}}}},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"post":{"summary":"Create a moderated post or permitted managed content","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ContentWrite"}}}},"responses":{"201":{"$ref":"#\/components\/responses\/ContentItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content\/{id}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"Read one accessible content item","responses":{"200":{"$ref":"#\/components\/responses\/ContentItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"patch":{"summary":"Partially update accessible content","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ContentPatch"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/ContentItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content\/{id}\/cover":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"post":{"summary":"Upload or replace a content cover","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CoverUpload"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/ContentItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content\/{id}\/translations":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"List accessible content translations in the bind group","responses":{"200":{"$ref":"#\/components\/responses\/TranslationCollection"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content\/{id}\/translations\/{lang}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"},{"$ref":"#\/components\/parameters\/PathLanguage"}],"put":{"summary":"Create or fully replace one content translation","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/ContentTranslationWrite"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/ContentItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"delete":{"summary":"Soft-delete a non-source content translation","responses":{"200":{"$ref":"#\/components\/responses\/Deleted"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content\/{id}\/translations\/auto":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"post":{"summary":"Automatically translate content into selected languages","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AutoTranslationWrite"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/AutomaticTranslation"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"},"503":{"$ref":"#\/components\/responses\/ProviderUnavailable"}}}},"\/content\/{id}\/media":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"List content gallery items","responses":{"200":{"$ref":"#\/components\/responses\/MediaCollection"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"post":{"summary":"Add a photo, file, or video link to a content gallery","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/MediaWrite"}}}},"responses":{"201":{"$ref":"#\/components\/responses\/MediaItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/content\/{id}\/media\/{media}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"},{"$ref":"#\/components\/parameters\/MediaId"}],"patch":{"summary":"Partially update content gallery metadata","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MediaPatch"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/MediaItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"delete":{"summary":"Delete a content gallery item and its physical file","responses":{"200":{"$ref":"#\/components\/responses\/Deleted"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads":{"get":{"summary":"List advertisements visible through the account's API permissions","parameters":[{"$ref":"#\/components\/parameters\/Language"},{"name":"type","in":"query","schema":{"$ref":"#\/components\/schemas\/AdType"}},{"$ref":"#\/components\/parameters\/UpdatedAfter"},{"$ref":"#\/components\/parameters\/PerPage"}],"responses":{"200":{"description":"Paginated advertisements","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AdvertisementCollection"}}}},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"post":{"summary":"Create an advertisement owned by the authenticated user","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AdvertisementWrite"}}}},"responses":{"201":{"$ref":"#\/components\/responses\/AdvertisementItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"Read one accessible advertisement","responses":{"200":{"$ref":"#\/components\/responses\/AdvertisementItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"patch":{"summary":"Partially update an owned advertisement or one allowed to super-admin","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AdvertisementPatch"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/AdvertisementItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/cover":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"post":{"summary":"Upload or replace an advertisement cover","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/CoverUpload"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/AdvertisementItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/translations":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"List advertisement translations and translated price comments","responses":{"200":{"$ref":"#\/components\/responses\/TranslationCollection"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/translations\/{lang}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"},{"$ref":"#\/components\/parameters\/PathLanguage"}],"put":{"summary":"Create or fully replace one advertisement translation","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AdvertisementTranslationWrite"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/TranslationItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"delete":{"summary":"Delete one advertisement language and its price-comment translations","responses":{"200":{"$ref":"#\/components\/responses\/Deleted"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/translations\/auto":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"post":{"summary":"Automatically translate an advertisement and price comments","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/AutoTranslationWrite"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/AutomaticTranslation"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"},"503":{"$ref":"#\/components\/responses\/ProviderUnavailable"}}}},"\/ads\/{id}\/prices":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"List advertisement prices","responses":{"200":{"$ref":"#\/components\/responses\/PriceCollection"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"post":{"summary":"Create an advertisement price","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PriceWrite"}}}},"responses":{"201":{"$ref":"#\/components\/responses\/PriceItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/prices\/{price}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"},{"$ref":"#\/components\/parameters\/PriceId"}],"patch":{"summary":"Partially update an advertisement price","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/PricePatch"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/PriceItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"delete":{"summary":"Delete an advertisement price","responses":{"200":{"$ref":"#\/components\/responses\/Deleted"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/media":{"parameters":[{"$ref":"#\/components\/parameters\/Id"}],"get":{"summary":"List advertisement gallery items","responses":{"200":{"$ref":"#\/components\/responses\/MediaCollection"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"post":{"summary":"Add an advertisement gallery item; advertisements allow at most six","requestBody":{"required":true,"content":{"multipart\/form-data":{"schema":{"$ref":"#\/components\/schemas\/MediaWrite"}}}},"responses":{"201":{"$ref":"#\/components\/responses\/MediaItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}},"\/ads\/{id}\/media\/{media}":{"parameters":[{"$ref":"#\/components\/parameters\/Id"},{"$ref":"#\/components\/parameters\/MediaId"}],"patch":{"summary":"Partially update advertisement gallery metadata","requestBody":{"required":true,"content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/MediaPatch"}}}},"responses":{"200":{"$ref":"#\/components\/responses\/MediaItem"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"422":{"$ref":"#\/components\/responses\/ValidationFailed"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}},"delete":{"summary":"Delete an advertisement gallery item and its physical file","responses":{"200":{"$ref":"#\/components\/responses\/Deleted"},"401":{"$ref":"#\/components\/responses\/Unauthenticated"},"403":{"$ref":"#\/components\/responses\/Forbidden"},"404":{"$ref":"#\/components\/responses\/NotFound"},"429":{"$ref":"#\/components\/responses\/RateLimited"}}}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"Sanctum personal access token"}},"parameters":{"Id":{"name":"id","in":"path","required":true,"schema":{"type":"integer","minimum":1}},"MediaId":{"name":"media","in":"path","required":true,"schema":{"type":"integer","minimum":1}},"PriceId":{"name":"price","in":"path","required":true,"schema":{"type":"integer","minimum":1}},"PathLanguage":{"name":"lang","in":"path","required":true,"schema":{"type":"string","minLength":2,"maxLength":2}},"Language":{"name":"lang","in":"query","schema":{"type":"string","minLength":2,"maxLength":2}},"RequiredLanguage":{"name":"lang","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":2}},"UpdatedAfter":{"name":"updated_after","in":"query","schema":{"type":"string","format":"date-time"}},"PerPage":{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":20}}},"schemas":{"ContentType":{"type":"string","enum":["post","page","category"]},"AdType":{"type":"string","enum":["offer","demand","promo","info"]},"Account":{"type":"object","required":["id","name","profile_status","site","location","abilities"],"properties":{"id":{"type":"integer"},"name":{"type":"string"},"email":{"type":["string","null"],"format":"email"},"profile_status":{"type":"string","enum":["trusted","verified"]},"site":{"type":"string","format":"uri"},"location":{"type":"string"},"abilities":{"type":"array","items":{"type":"string"}},"automatic_translation":{"$ref":"#\/components\/schemas\/TranslationAvailability"}}},"ReferenceItem":{"type":"object","properties":{"id":{"type":"integer"},"parent_id":{"type":["integer","null"]},"name":{"type":"string"},"slug":{"type":"string"},"lang":{"type":"string"}}},"ReferenceData":{"type":"object","properties":{"languages":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"name":{"type":"string"}}}},"content_types":{"type":"array","items":{"$ref":"#\/components\/schemas\/ContentType"}},"content_categories":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferenceItem"}},"ad_types":{"type":"object","additionalProperties":{"type":"string"}},"ad_sections":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferenceItem"}},"locations":{"type":"array","items":{"allOf":[{"$ref":"#\/components\/schemas\/ReferenceItem"},{"type":"object","properties":{"type":{"type":"string"}}}]}},"price_types":{"type":"object","additionalProperties":{"type":"string"}},"price_currencies":{"type":"object","additionalProperties":{"type":"string"}},"media_types":{"type":"array","items":{"type":"string","enum":["photo","file","video"]}},"automatic_translation":{"$ref":"#\/components\/schemas\/TranslationAvailability"}}},"TranslationAvailability":{"type":"object","properties":{"enabled":{"type":"boolean"},"provider":{"type":["string","null"]},"languages":{"type":"array","items":{"type":"string"}},"max_characters":{"type":"integer","example":30000},"rate_limit_per_hour":{"type":"integer","example":10}}},"AutoTranslationWrite":{"type":"object","required":["target_languages"],"properties":{"target_languages":{"type":"array","minItems":1,"uniqueItems":true,"items":{"type":"string"}},"overwrite":{"type":"boolean","default":false}}},"AutomaticTranslationResult":{"type":"object","properties":{"status":{"type":"string","enum":["completed","partial","skipped"]},"translated_languages":{"type":"array","items":{"type":"string"}},"failed_languages":{"type":"array","items":{"type":"string"}}}},"ContentTranslationWrite":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":3,"maxLength":150},"title":{"type":["string","null"]},"slug":{"type":["string","null"],"description":"Permission-controlled"},"parent_id":{"type":["integer","null"],"description":"Permission-controlled category in target language"},"teaser":{"type":["string","null"],"maxLength":500},"text":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"}},"location_ids":{"type":"array","items":{"type":"integer"}}}},"AdvertisementTranslationWrite":{"type":"object","required":["name","title","text"],"properties":{"name":{"type":"string","minLength":3,"maxLength":150},"title":{"type":"string","minLength":3,"maxLength":150},"teaser":{"type":["string","null"],"maxLength":500},"text":{"type":"string","minLength":10,"maxLength":1500},"price_comments":{"type":"object","additionalProperties":{"type":["string","null"],"maxLength":255}}}},"PriceWrite":{"type":"object","required":["type","value","currency"],"properties":{"type":{"type":"string"},"value":{"type":"number","minimum":0.01},"currency":{"type":"string"},"discount":{"type":["number","null"],"minimum":0},"date_start":{"type":["string","null"],"format":"date"},"date_end":{"type":["string","null"],"format":"date"},"comment":{"type":["string","null"],"maxLength":255},"sort":{"type":["integer","null"]},"translations":{"type":"object","additionalProperties":{"type":"object","properties":{"comment":{"type":["string","null"],"maxLength":255}}}}}},"PricePatch":{"allOf":[{"$ref":"#\/components\/schemas\/PriceWrite"}],"minProperties":1,"required":[]},"Price":{"allOf":[{"$ref":"#\/components\/schemas\/PriceWrite"},{"type":"object","properties":{"id":{"type":"integer"},"service_id":{"type":"integer"}}}]},"MediaWrite":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["photo","file","video"]},"file":{"type":"string","format":"binary"},"link":{"type":"string","format":"uri"},"name":{"type":["string","null"]},"source":{"type":["string","null"]},"sort":{"type":["integer","null"]},"group":{"type":["integer","null"]},"active":{"type":"boolean","default":true}}},"MediaPatch":{"type":"object","minProperties":1,"properties":{"name":{"type":["string","null"]},"source":{"type":["string","null"]},"sort":{"type":["integer","null"]},"group":{"type":["integer","null"]},"active":{"type":"boolean"},"link":{"type":["string","null"],"format":"uri"}}},"Media":{"allOf":[{"$ref":"#\/components\/schemas\/MediaWrite"},{"type":"object","properties":{"id":{"type":"integer"},"image_url":{"type":["string","null"]},"thumbnail_url":{"type":["string","null"]},"file_url":{"type":["string","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}}]},"ContentWrite":{"type":"object","required":["type","lang","name"],"properties":{"type":{"$ref":"#\/components\/schemas\/ContentType"},"lang":{"type":"string"},"name":{"type":"string","minLength":3,"maxLength":150},"slug":{"type":"string","description":"Permission-controlled"},"title":{"type":["string","null"],"description":"Permission-controlled"},"parent_id":{"type":["integer","null"],"description":"Permission-controlled category in the same language"},"bind":{"type":["string","null"],"description":"Permission-controlled"},"teaser":{"type":["string","null"],"maxLength":500},"text":{"type":["string","null"]},"video":{"type":["string","null"],"description":"Permission-controlled"},"sort":{"type":"integer","description":"Permission-controlled"},"active":{"type":"boolean","description":"Permission-controlled"},"tags":{"type":"array","items":{"type":"string","maxLength":60}},"location_ids":{"type":"array","items":{"type":"integer"}},"accept_rules":{"type":"boolean","description":"Required for ordinary moderated submissions"},"translations":{"type":"object","additionalProperties":{"$ref":"#\/components\/schemas\/ContentTranslationWrite"}},"auto_translate":{"type":"object","required":["target_languages"],"properties":{"target_languages":{"type":"array","items":{"type":"string"}}}}}},"ContentPatch":{"type":"object","minProperties":1,"properties":{"type":{"$ref":"#\/components\/schemas\/ContentType"},"lang":{"type":"string"},"name":{"type":"string","minLength":3,"maxLength":150},"slug":{"type":"string","description":"Permission-controlled"},"title":{"type":["string","null"],"description":"Permission-controlled"},"parent_id":{"type":["integer","null"],"description":"Permission-controlled category in the same language"},"bind":{"type":["string","null"],"description":"Permission-controlled"},"teaser":{"type":["string","null"],"maxLength":500},"text":{"type":["string","null"]},"video":{"type":["string","null"],"description":"Permission-controlled"},"sort":{"type":"integer","description":"Permission-controlled"},"active":{"type":"boolean","description":"Permission-controlled"},"tags":{"type":"array","items":{"type":"string","maxLength":60}},"location_ids":{"type":"array","items":{"type":"integer"}}}},"Content":{"type":"object","properties":{"id":{"type":"integer"},"user_id":{"type":["integer","null"]},"parent_id":{"type":["integer","null"]},"type":{"$ref":"#\/components\/schemas\/ContentType"},"lang":{"type":"string"},"bind":{"type":["string","null"]},"name":{"type":"string"},"slug":{"type":"string"},"title":{"type":["string","null"]},"teaser":{"type":["string","null"]},"text":{"type":["string","null"]},"video":{"type":["string","null"]},"sort":{"type":"integer"},"active":{"type":"boolean"},"approved":{"type":"boolean"},"submission_status":{"type":["string","null"],"enum":["pending","published","rejected",null]},"rejection_reason":{"type":["string","null"]},"cover_url":{"type":["string","null"]},"url":{"type":"string"},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferenceItem"}},"locations":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferenceItem"}},"translation_languages":{"type":"array","items":{"type":"string"}},"media_count":{"type":["integer","null"]},"submitted_at":{"type":["string","null"],"format":"date-time"},"reviewed_at":{"type":["string","null"],"format":"date-time"},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"AdvertisementWrite":{"type":"object","required":["section_id","lang","type","name","text","address","location_ids"],"properties":{"section_id":{"type":"integer"},"lang":{"type":"string"},"type":{"$ref":"#\/components\/schemas\/AdType"},"name":{"type":"string","minLength":3,"maxLength":150},"slug":{"type":"string","minLength":3,"maxLength":180},"title":{"type":"string","minLength":3,"maxLength":150},"teaser":{"type":["string","null"],"maxLength":500},"text":{"type":"string","minLength":10,"maxLength":1500},"video":{"type":["string","null"],"maxLength":255},"coords":{"type":["string","null"],"maxLength":255},"address":{"type":"string","minLength":3,"maxLength":255,"description":"Required contact containing at least one email, phone number, web URL, or messenger link."},"active":{"type":"boolean","default":true},"expiration_date":{"type":["string","null"],"format":"date"},"location_ids":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"integer"}},"tags":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":60}},"prices":{"type":"array","maxItems":20,"items":{"$ref":"#\/components\/schemas\/PriceWrite"}},"translations":{"type":"object","maxProperties":10,"additionalProperties":{"$ref":"#\/components\/schemas\/AdvertisementTranslationWrite"}},"auto_translate":{"type":"object","required":["target_languages"],"properties":{"target_languages":{"type":"array","minItems":1,"maxItems":10,"uniqueItems":true,"items":{"type":"string"}}}}}},"AdvertisementPatch":{"type":"object","minProperties":1,"properties":{"section_id":{"type":"integer"},"lang":{"type":"string"},"type":{"$ref":"#\/components\/schemas\/AdType"},"name":{"type":"string","minLength":3,"maxLength":150},"slug":{"type":"string","minLength":3,"maxLength":180},"title":{"type":"string","minLength":3,"maxLength":150},"teaser":{"type":["string","null"],"maxLength":500},"text":{"type":"string","minLength":10,"maxLength":1500},"video":{"type":["string","null"],"maxLength":255},"coords":{"type":["string","null"],"maxLength":255},"address":{"type":"string","minLength":3,"maxLength":255,"description":"When supplied, must contain at least one email, phone number, web URL, or messenger link."},"active":{"type":"boolean"},"expiration_date":{"type":["string","null"],"format":"date"},"location_ids":{"type":"array","minItems":1,"maxItems":20,"items":{"type":"integer"}},"tags":{"type":"array","maxItems":20,"items":{"type":"string","maxLength":60}}}},"Advertisement":{"type":"object","properties":{"id":{"type":"integer"},"user_id":{"type":"integer"},"section_id":{"type":["integer","null"]},"lang":{"type":"string"},"type":{"$ref":"#\/components\/schemas\/AdType"},"name":{"type":"string"},"slug":{"type":"string"},"title":{"type":["string","null"]},"teaser":{"type":["string","null"]},"text":{"type":["string","null"]},"video":{"type":["string","null"]},"coords":{"type":["string","null"]},"address":{"type":["string","null"]},"active":{"type":"boolean"},"approved":{"type":"boolean"},"expiration_date":{"type":["string","null"],"format":"date"},"cover_url":{"type":["string","null"]},"url":{"type":"string"},"section":{"oneOf":[{"$ref":"#\/components\/schemas\/ReferenceItem"},{"type":"null"}]},"locations":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferenceItem"}},"tags":{"type":"array","items":{"$ref":"#\/components\/schemas\/ReferenceItem"}},"prices":{"type":"array","readOnly":true,"items":{"type":"object"}},"translation_languages":{"type":"array","items":{"type":"string"}},"media_count":{"type":["integer","null"]},"created_at":{"type":["string","null"],"format":"date-time"},"updated_at":{"type":["string","null"],"format":"date-time"}}},"CoverUpload":{"type":"object","required":["image"],"properties":{"image":{"type":"string","format":"binary","description":"GIF, JPEG, PNG, or WebP up to 5 MB"},"coordinates":{"type":["string","null"]}}},"Error":{"type":"object","required":["message"],"properties":{"message":{"type":"string"},"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}}},"PaginationLinks":{"type":"object","additionalProperties":true},"PaginationMeta":{"type":"object","additionalProperties":true},"ContentCollection":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Content"}},"links":{"$ref":"#\/components\/schemas\/PaginationLinks"},"meta":{"$ref":"#\/components\/schemas\/PaginationMeta"}}},"AdvertisementCollection":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Advertisement"}},"links":{"$ref":"#\/components\/schemas\/PaginationLinks"},"meta":{"$ref":"#\/components\/schemas\/PaginationMeta"}}}},"responses":{"ContentItem":{"description":"Content item","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Content"}}}}}},"AdvertisementItem":{"description":"Advertisement","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Advertisement"}}}}}},"TranslationCollection":{"description":"Translations keyed by language","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","additionalProperties":{"type":"object"}}}}}}},"TranslationItem":{"description":"One translation","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object"}}}}}},"AutomaticTranslation":{"description":"Automatic translation outcome","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/AutomaticTranslationResult"}}}}}},"PriceItem":{"description":"Price","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Price"}}}}}},"PriceCollection":{"description":"Advertisement prices","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Price"}}}}}}},"MediaItem":{"description":"Gallery item","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#\/components\/schemas\/Media"}}}}}},"MediaCollection":{"description":"Gallery items","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#\/components\/schemas\/Media"}}}}}}},"Deleted":{"description":"Nested resource deleted","content":{"application\/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean"}}}}}}}},"Unauthenticated":{"description":"Missing or invalid key","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"Forbidden":{"description":"Current account or token lacks access","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"NotFound":{"description":"Entity not found or hidden from this account","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"ValidationFailed":{"description":"Validation failed","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"RateLimited":{"description":"API or automatic-translation rate limit reached","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}},"ProviderUnavailable":{"description":"Automatic translation provider unavailable","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}}