Skip to main content

Create a privatisation of a business

POST 

https://api.staging.powerapi.com/api/v1/privatisations

Create a privatisation of a business

Request

Bodyrequired

    data object
    type stringrequired

    Possible values: [privatisations]

    attributes object
    name stringrequired
    from int32required
    to int32required
    date daterequired
    number_of_servings int32required
    email stringrequired
    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 int32
    marketing_feedback string
    consent_gdpr
    menu binary
    relationships object
    business object
    data object
    type stringrequired

    Possible values: [business]

    id stringrequired

    Related Business ID

    user object
    data object
    type string

    Possible values: [user]

    id string

    Related User ID

Responses

Create a privatisation of a business
Schema

Authorization: http

name: bearertype: httpscheme: bearerbearerFormat: JWT
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"
}
}
}
}
}'
Request Collapse all
Base URL
https://api.staging.powerapi.com
Auth
Body required
{
  "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

Click the Send API Request button above and see the response here!