Skip to main content

Update Customer

PUT 

/api/contacts/customer/:id

Update Customer

Request

Path Parameters

    id integerrequired

Header Parameters

    X-Company-Slug stringrequired

Body

    name string
    surname string
    type ContactTypeEnum (string)

    Possible values: [vendor, customer]

    email email
    phone phone
    gender ContactGenderEnum (string)

    Possible values: [male, female, other]

    birthdate date
    address string
    custom_fields object

    permissions

    object

    gdpr booleanrequired
    sms boolean
    email boolean
    marketing_sms boolean
    marketing_email boolean
    marketing_call boolean
    language string

Responses

Successful response

Schema

    id string
    name string
    surname stringnullable
    type ContactTypeEnum (string)nullable

    Possible values: [vendor, customer]

    email emailnullable
    phone phonenullable
    gender ContactGenderEnum (string)nullable

    Possible values: [male, female, other]

    birthdate datenullable
    address stringnullable
    custom_fields objectnullable
    created_at date-time
    updated_at date-time
    default_photo_id numbernullable

    permissions

    object

    id string
    contact_id string
    gdpr boolean
    sms boolean
    email boolean
    marketing_sms boolean
    marketing_email boolean
    marketing_call boolean
    language string
    updated_at date-time
Loading...