Event Registrations


GET/api/v1/event-registrations/:event_id

List all registered players in the event

This endpoint allows you to retrieve all the registered players in the event.

Request

GET
/api/v1/event-registrations/:event_id
curl -G https://public-api.dartconnect.com/api/v1/event-registrations/58769 \
-H "Authorization: Bearer {token}"

Response

{
    "data": [
        {
            "competitor_id": 787668,
            "competitor_type": "player",
            "competitor": {
                "id": 787668,
                "date_of_birth": "1992-08-02",
                "email": "email@email.nl",
                "first_name": "A",
                "gender": "M",
                "iso3_country": "NLD",
                "last_name": "P",
                "updated_at": "2024-02-04T12:24:56.000000Z"
            },
            "event_id": 58769,
            "id": 1315752
        },
        {
            ...
        },
    ]
}

POST/api/v1/event-registrations/player/:event_id

Add player into event

This endpoint allows you to add a player into a tournament event.

Required attributes

  • Name
    player_id
    Type
    integer
    Description

    Provide player_id fetched from the players list or after creation

Request

POST
/api/v1/event-registrations/player/:event_id
curl -G https://public-api.dartconnect.com/api/v1/event-registrations/player/58769 \
-H "Authorization: Bearer {token}" \
-d limit=10

Response

{
    "data": {
        "id": "dutchopen24",
        "start_date": "2024-02-01T00:00:00.000000Z",
        "expiration_date": "2024-02-04T00:00:00.000000Z",
        "closed": "Y",
        "dctv_title": "TOTO Dutch Open Darts 2024",
        "country_code": "NL",
        "city": "Assen",
    },
}

DELETE/api/v1/event-registrations/player/:event_id

Remove player from event

This endpoint allows you to remove a player from event.

Required attributes

  • Name
    player_id
    Type
    integer
    Description

    Provide player_id fetched from the players list or after creation

Request

GET
/api/v1/event-registrations/player/:event_id
curl -G https://public-api.dartconnect.com/api/v1/event-registrations/player/58769 \
-H "Authorization: Bearer {token}" \
-d limit=10

Response

{
    "data": {
        "id": "dutchopen24",
        "start_date": "2024-02-01T00:00:00.000000Z",
        "expiration_date": "2024-02-04T00:00:00.000000Z",
        "closed": "Y",
        "dctv_title": "TOTO Dutch Open Darts 2024",
        "country_code": "NL",
        "city": "Assen",
    },
}

POST/api/v1/event-registrations/team/:event_id

Add team into event

This endpoint allows you to add a team into a tournament event.

Required attributes

  • Name
    player_ids
    Type
    array
    Description

    Provide player_ids fetched from the players list

Request

POST
/api/v1/event-registrations/team/:event_id
curl -G https://public-api.dartconnect.com/api/v1/event-registrations/team/58769 \
-H "Authorization: Bearer {token}" \
-d limit=10

Response

{
    "data": {
        "id": "dutchopen24",
        "start_date": "2024-02-01T00:00:00.000000Z",
        "expiration_date": "2024-02-04T00:00:00.000000Z",
        "closed": "Y",
        "dctv_title": "TOTO Dutch Open Darts 2024",
        "country_code": "NL",
        "city": "Assen",
    },
}

DELETE/api/v1/event-registrations/team/:event_id

Remove team from event

This endpoint allows you to remove a team from event.

Required attributes

  • Name
    competitor_id
    Type
    integer
    Description

    Provide competitor_id fetched from the events roster list

Request

DELETE
/api/v1/event-registrations/team/:event_id
curl -G https://public-api.dartconnect.com/api/v1/event-registrations/team/58769 \
-H "Authorization: Bearer {token}" \
-d limit=10

Response

{
    "data": {
        "id": "dutchopen24",
        "start_date": "2024-02-01T00:00:00.000000Z",
        "expiration_date": "2024-02-04T00:00:00.000000Z",
        "closed": "Y",
        "dctv_title": "TOTO Dutch Open Darts 2024",
        "country_code": "NL",
        "city": "Assen",
    },
}

Was this page helpful?