Create a privatisation of a business
POSThttps://api.staging.powerapi.com/api/v1/privatisations
Create a privatisation of a business
Request
- application/vnd.api+json
Bodyrequired
data object
Responses
- 201
Create a privatisation of a business
- application/vnd.api+json
- Schema
Schema
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/privatisations' \
-H 'Content-Type: application/vnd.api+json' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"data": {
"type": "privatisations",
"attributes": {
"name": "string",
"from": 0,
"to": 0,
"date": "2024-07-29",
"number_of_servings": 0,
"email": "string",
"phone": "string",
"phone_country_code": "string",
"phone_country_prefix": "string",
"specifications": "string",
"user_name": "string",
"type_of_event": "string",
"chef_attendance": {},
"company_name": "string",
"corporate_event": {},
"number_of_waiters": 0,
"marketing_feedback": "string",
"consent_gdpr": {},
"menu": "string"
},
"relationships": {
"business": {
"data": {
"type": "business",
"id": "string"
}
},
"user": {
"data": {
"type": "user",
"id": "string"
}
}
}
}
}'
ResponseClear