Update a tag
US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com
Update a tag. Requires the write:metadata scope.
Supports optimistic concurrency: pass the updated_at you last read
and the request fails with 409 (STALE_UPDATE) if the tag changed
since then.
Request example
curl --request PUT \ --url 'https://public-api.sessionboard.com/v1/event/{eventId}/tags/{id}' \ --header 'x-access-token: <api-token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "color": "<string>", "order": 123, "updated_at": "<string>"}'const response = await fetch('https://public-api.sessionboard.com/v1/event/{eventId}/tags/{id}', { method: 'PUT', headers: { "x-access-token": "<api-token>", "Content-Type": "application/json" }, body: JSON.stringify({ "name": "<string>", "color": "<string>", "order": 123, "updated_at": "<string>" }),});
const data = await response.json();console.log(data);import requests
response = requests.request( "PUT", "https://public-api.sessionboard.com/v1/event/{eventId}/tags/{id}", headers={ "x-access-token": "<api-token>", "Content-Type": "application/json" }, json={ "name": "<string>", "color": "<string>", "order": 123, "updated_at": "<string>" },)
print(response.json())<?php
$curl = curl_init();
curl_setopt_array($curl, [ CURLOPT_URL => "https://public-api.sessionboard.com/v1/event/{eventId}/tags/{id}", CURLOPT_RETURNTRANSFER => true, CURLOPT_CUSTOMREQUEST => "PUT", CURLOPT_POSTFIELDS => '{ "name": "<string>", "color": "<string>", "order": 123, "updated_at": "<string>"}', CURLOPT_HTTPHEADER => [ "x-access-token: <api-token>", "Content-Type: application/json", ],]);
$response = curl_exec($curl);curl_close($curl);
echo $response;package main
import ( "fmt" "io" "net/http" "strings")
func main() { req, _ := http.NewRequest("PUT", "https://public-api.sessionboard.com/v1/event/{eventId}/tags/{id}", strings.NewReader(`{ "name": "<string>", "color": "<string>", "order": 123, "updated_at": "<string>"}`)) req.Header.Add("x-access-token", "<api-token>") req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))}HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://public-api.sessionboard.com/v1/event/{eventId}/tags/{id}")) .header("x-access-token", "<api-token>") .header("Content-Type", "application/json") .method("PUT", HttpRequest.BodyPublishers.ofString("{\n \"name\": \"<string>\",\n \"color\": \"<string>\",\n \"order\": 123,\n \"updated_at\": \"<string>\"\n}")) .build();
HttpResponse<String> response = HttpClient.newHttpClient() .send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Try it
Response headers
Authorizations
x-access-tokenstringheaderOrganization API token. Generate from Organization Settings → API Tokens.
AuthorizationBearer <token>headerorOAuth 2.1 access token. Obtained via the OAuth PKCE flow at
/oauth/token.
Send one of these. See Authentication.
Path parameters
eventIdintegerpathrequiredidstringpathrequired
Request body
namestringcolorstringorderintegerupdated_atstringLast-read
updated_atfor optimistic concurrency.
{ "name": "<string>", "color": "<string>", "order": 123, "updated_at": "<string>"}Responses
200application/json
Tag updated
dataTagAn event taxonomy tag that can be applied to sessions.
The list, create, and update endpoints return
type,color, andorder; tags nested inside aSessionresponse and the search endpoint (POST /tags) return the identifying fields only.Show child attributes
idstring<uuid>typestring- Allowed values
"tag"
namestringcolorstring | nullorderinteger | nullcreated_atstringupdated_atstring
401
Unauthorized
403
Missing write:metadata scope
404
Tag not found
409
Stale update — tag modified since last fetch (STALE_UPDATE)
Response examples
{ "data": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "type": "tag", "name": "<string>", "color": "<string>", "order": 123, "created_at": "<string>", "updated_at": "<string>" }}