Add a locale
The workspace’s first locale becomes its default. 409 `locale_exists` when it’s there already.
POST
The workspace’s first locale becomes its default. 409 locale_exists when it’s there already.
idempotency-key?stringRun this write once: a retry with the same key gets the first answer (24 hours).
Length
1 <= length <= 255application/json- body
code*stringLocale: a language and a country, e.g. nl-NL or en-US
Length
length <= 35OK
application/json- response
id*stringFormat
uuidcode*stringlabel*stringlanguage*stringregion*string|nullorigin*stringValue in
"store""manual"isDefault*booleancreatedAt*stringFormat
date-timecurl -X POST 'https://api.postforge.dev/v1/locales' \ -H 'Content-Type: application/json' \ -d '{ "code": "string"}'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "code": "string", "label": "string", "language": "string", "region": "string", "origin": "store", "isDefault": true, "createdAt": "2019-08-24T14:15:22Z"}