Create Contact

POST /v1/contacts
application/json

Body

New Contact Params

  • contact object Required

    A contact

    Hide contact attributes Show contact attributes object
    • email string(email) Required

      Email address

    • Contact first name

      Format should match the following pattern: [a-zA-Z][a-zA-Z0-9_]+.

    • id integer

      Contact ID

    • insertedAt string(date-time)

      Creation timestamp

    • lastName string

      Contact last name

      Format should match the following pattern: [a-zA-Z][a-zA-Z0-9_]+.

    • updatedAt string(date-time)

      Update timestamp

Responses

  • 201 application/json

    Contact response

    Hide response attribute Show response attribute object
    • data object

      A contact

      Hide data attributes Show data attributes object
      • email string(email) Required

        Email address

      • Contact first name

        Format should match the following pattern: [a-zA-Z][a-zA-Z0-9_]+.

      • id integer

        Contact ID

      • insertedAt string(date-time)

        Creation timestamp

      • lastName string

        Contact last name

        Format should match the following pattern: [a-zA-Z][a-zA-Z0-9_]+.

      • updatedAt string(date-time)

        Update timestamp

POST /v1/contacts
curl \
 -X POST https://api.azav-pilot.de/v1/contacts \
 -H "Content-Type: application/json" \
 -d '{"contact":{"id":"\u003cuuid v4\u003e","last_name":"Muster","first_name":"Melanie"}}'
Request example
{
  "contact": {
    "id": "<uuid v4>",
    "last_name": "Muster",
    "first_name": "Melanie"
  }
}
Response examples (201)
{
  "data": {
    "id": "<uuid v4>",
    "last_name": "Muster",
    "first_name": "Melanie"
  }
}