POST/desk/api/v2/customers.json

Create a new customer.

Body Params

CustomerAPIBody is the request/response format for the API

    • Name
      customer
      Type
      object
      Description
      Customer represents a Customer.
    • Name
      included
      Type
      object
      Description
      Included allows adding referenced objects on the API response. The included keys should map to the `types` in the Relationship slices/objects.

    Responses

    • Code
      201
      Type
      object
      Schema
      Description
      201 Created
      CustomerAPIBody is the request/response format for the API
    • Code
      400
      Type
      object
      Schema
      Description
      400 Bad Request
      Validator hold the validation errors. Typically you shouldn't create this directly but use the New() function.

    Examples

    201 Created

    CustomerAPIBody
    {  "customer": {    "addMethod": "string",    "address": "string",    "avatarURL": "string",    "company": {      "delete": true,      "id": 0,      "meta": {        "additionalProp": "Unknown Type: any"      },      "type": 0    },    "contacts": [      {        "delete": true,        "id": 0,        "meta": {