/api/v1/locations/{locationId}/own-codes (PUT)
PUT
/api/v1/locations/{locationId}/own-codes
const url = 'https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/own-codes';const options = { method: 'PUT', headers: {'Content-Type': 'application/json'}, body: '{"numbering":{"enabled":true,"prefix":"example","pad":1},"rule":{"pattern":"example","message":"example","example":"example"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/locations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/own-codes \ --header 'Content-Type: application/json' \ --data '{ "numbering": { "enabled": true, "prefix": "example", "pad": 1 }, "rule": { "pattern": "example", "message": "example", "example": "example" } }'Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”locationId
required
string format: uuid
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
Examplegenerated
{ "numbering": { "enabled": true, "prefix": "example", "pad": 1 }, "rule": { "pattern": "example", "message": "example", "example": "example" }}Responses
Section titled “Responses”Default Response
Media typeapplication/json
object
Examplegenerated
{ "locationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "numbering": { "enabled": true, "prefix": "example", "pad": 1, "next": "example" }, "rule": { "pattern": "example", "message": "example", "example": "example" }, "rowVersion": 1}