Sviluppatori

Spazi

Autenticazione
La chiave API deve essere inviata come token Bearer nell’header Authorization della richiesta. Ottieni la tua chiave API.
Elenco

Endpoint API

GET
https://clck.plus/api/v1/spaces

Esempio di richiesta

curl --location --request GET 'https://clck.plus/api/v1/spaces' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'

Parametri

Nome
Tipo
Descrizione
search
facoltativo string
Query di ricerca.
search_by
facoltativo string
Cerca per. Valori possibili: name per Nome. Valore predefinito: name.
sort_by
facoltativo string
Ordina per. Valori possibili: id per Data di creazione, name per Nome. Valore predefinito: id.
sort
facoltativo string
Ordine. Valori possibili: desc per Decrescente, asc per Crescente. Valore predefinito: desc.
per_page
facoltativo integer
Risultati per pagina. Valori possibili: 10, 25, 50, 100. Valore predefinito: 50.
Mostra

Endpoint API

GET
https://clck.plus/api/v1/spaces/{id}

Esempio di richiesta

curl --location --request GET 'https://clck.plus/api/v1/spaces/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Archivio

Endpoint API

POST
https://clck.plus/api/v1/spaces

Esempio di richiesta

curl --location --request POST 'https://clck.plus/api/v1/spaces' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'

Parametri

Nome
Tipo
Descrizione
name
obbligatorio string
Nome.
color
facoltativo integer
Colore. Valori possibili: 1, 2, 3, 4, 5, 6. Valore predefinito: 1.
Aggiorna

Endpoint API

PUT PATCH
https://clck.plus/api/v1/spaces/{id}

Esempio di richiesta

curl --location --request PUT 'https://clck.plus/api/v1/spaces/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'

Parametri

Nome
Tipo
Descrizione
name
facoltativo string
Nome.
color
facoltativo integer
Colore. Valori possibili: 1, 2, 3, 4, 5, 6.
Elimina

Endpoint API

DELETE
https://clck.plus/api/v1/spaces/{id}

Esempio di richiesta

curl --location --request DELETE 'https://clck.plus/api/v1/spaces/{id}' \
--header 'Authorization: Bearer {api_key}'