Upsert Department by code

This Api works as un upsert. If the key_identifier's value used to search is not present, a creation will be made. Otherwise an update will be performed with the key requested. Please consider that the key already present in database can not be updated with this Api.
Attention: the uuid in this case will be autogenerated by BE.
Attention: If you use the sku as a key, uuid in the body will be ignored and will be preserved the uuid in the database.

Path Params
string
enum
required

key that you want to use to update. This key must be the same in the payload request.

Allowed:
string
required

value of key that you want to use to update. This key must be the same in the payload request.

Body Params

Object data that need to be updated

number
number
string

department code must be unique

boolean
uuid
integer
string
length between 0 and 100
string
required
length between 0 and 20
boolean
string
integer
string
enum
Allowed:
vat
object
integer
required
Responses

404

department not found

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json