Authorizations
API key for authentication. Contact your administrator to get an API key.
Body
application/json
Response
Successfully created site
The response is of type object
.
curl --request POST \
--url http://localhost:8080/site \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"code": "<string>",
"name": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"fiscal_name": "<string>",
"cif": "<string>",
"zip_code": "<string>"
}'
{
"code": "<string>",
"name": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"fiscal_name": "<string>",
"cif": "<string>",
"zip_code": "<string>"
}
curl --request POST \
--url http://localhost:8080/site \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"code": "<string>",
"name": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"fiscal_name": "<string>",
"cif": "<string>",
"zip_code": "<string>"
}'
{
"code": "<string>",
"name": "<string>",
"street": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"fiscal_name": "<string>",
"cif": "<string>",
"zip_code": "<string>"
}
API key for authentication. Contact your administrator to get an API key.
Successfully created site
The response is of type object
.