Reserve contact IDs

Content

Resource URL

https://apps.ticketmatic.com/api/1/{accountname}/contacts/import/reserve

Description

Importing contacts with the specified IDs is only possible when those IDs fall in the reserved ID range. Use this call to reserve a range of contact IDs. Any unused ID lower than or equal to the specified ID will be reserved. New contacts will receive IDs higher than the specified ID.

Example

Request

1use Ticketmatic\Endpoints\Contacts;
2
3$result = Contacts::reserve($client, array(
4    "id" => 100000,
5));

Response

1object(\Ticketmatic\Model\ContactIdReservation) (1) {
2  ["id"]=>
3  int(0)
4}

Request

1import (
2    "github.com/ticketmatic/tm-go/ticketmatic"
3    "github.com/ticketmatic/tm-go/ticketmatic/contacts"
4)
5
6result, err := contacts.Reserve(client, &ticketmatic.ContactIdReservation{
7    Id: 100000,
8})

Response

1result := &ticketmatic.ContactIdReservation{
2    Id: 100000,
3}

Request

1POST /api/1/{accountname}/contacts/import/reserve HTTP/1.1
2Content-Type: application/json
3
4{
5    "id": 100000
6}

Response

1HTTP/1.1 200 OK
2Content-Type: application/json
3
4{
5    "id": 100000
6}

Request body fields

FieldDescription
id
int 
(required)

Maximum ID to reserve

Example value:100000

Type reference: ContactIdReservation

Result fields

FieldDescription
id
int

Maximum ID to reserve

Example value:100000

Type reference: ContactIdReservation