API tokens
updates a partner token
Updates the label, expiry, or role of a partner token. Only the fields you send are changed; send expires_at or role_id as null to clear them. The token value itself does not change. Returns 404 when the token does not belong to the company. Requires a company admin Bearer token with the developer update permission.
PUT
/
api
/
v2025-06
/
tokens
/
partner
/
{id}
updates a partner token
curl --request PUT \
--url https://api.fluid.app/api/v2025-06/tokens/partner/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"partner_token": {
"label": "Pied Piper order sync (production)",
"expires_at": "2027-12-31T23:59:59Z"
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/tokens/partner/{id}"
payload = { "partner_token": {
"label": "Pied Piper order sync (production)",
"expires_at": "2027-12-31T23:59:59Z"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
partner_token: {
label: 'Pied Piper order sync (production)',
expires_at: '2027-12-31T23:59:59Z'
}
})
};
fetch('https://api.fluid.app/api/v2025-06/tokens/partner/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v2025-06/tokens/partner/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'partner_token' => [
'label' => 'Pied Piper order sync (production)',
'expires_at' => '2027-12-31T23:59:59Z'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v2025-06/tokens/partner/{id}"
payload := strings.NewReader("{\n \"partner_token\": {\n \"label\": \"Pied Piper order sync (production)\",\n \"expires_at\": \"2027-12-31T23:59:59Z\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <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))
}HttpResponse<String> response = Unirest.put("https://api.fluid.app/api/v2025-06/tokens/partner/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"partner_token\": {\n \"label\": \"Pied Piper order sync (production)\",\n \"expires_at\": \"2027-12-31T23:59:59Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/tokens/partner/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_token\": {\n \"label\": \"Pied Piper order sync (production)\",\n \"expires_at\": \"2027-12-31T23:59:59Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 48213,
"label": "Pied Piper order sync (production)",
"token_display": "PT-****3bYs",
"created_at": "2026-09-14T16:05:22Z",
"expires_at": "2027-12-31T23:59:59Z",
"role_id": 5214,
"meta": {
"request_id": "8c2f4e71-3b9a-4d6e-a1f5-7e0b9c3d2a48",
"timestamp": "2026-09-14T16:05:22Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Show child attributes
Show child attributes
⌘I
updates a partner token
curl --request PUT \
--url https://api.fluid.app/api/v2025-06/tokens/partner/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"partner_token": {
"label": "Pied Piper order sync (production)",
"expires_at": "2027-12-31T23:59:59Z"
}
}
'import requests
url = "https://api.fluid.app/api/v2025-06/tokens/partner/{id}"
payload = { "partner_token": {
"label": "Pied Piper order sync (production)",
"expires_at": "2027-12-31T23:59:59Z"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
partner_token: {
label: 'Pied Piper order sync (production)',
expires_at: '2027-12-31T23:59:59Z'
}
})
};
fetch('https://api.fluid.app/api/v2025-06/tokens/partner/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fluid.app/api/v2025-06/tokens/partner/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'partner_token' => [
'label' => 'Pied Piper order sync (production)',
'expires_at' => '2027-12-31T23:59:59Z'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fluid.app/api/v2025-06/tokens/partner/{id}"
payload := strings.NewReader("{\n \"partner_token\": {\n \"label\": \"Pied Piper order sync (production)\",\n \"expires_at\": \"2027-12-31T23:59:59Z\"\n }\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "Bearer <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))
}HttpResponse<String> response = Unirest.put("https://api.fluid.app/api/v2025-06/tokens/partner/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"partner_token\": {\n \"label\": \"Pied Piper order sync (production)\",\n \"expires_at\": \"2027-12-31T23:59:59Z\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/v2025-06/tokens/partner/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"partner_token\": {\n \"label\": \"Pied Piper order sync (production)\",\n \"expires_at\": \"2027-12-31T23:59:59Z\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": 48213,
"label": "Pied Piper order sync (production)",
"token_display": "PT-****3bYs",
"created_at": "2026-09-14T16:05:22Z",
"expires_at": "2027-12-31T23:59:59Z",
"role_id": 5214,
"meta": {
"request_id": "8c2f4e71-3b9a-4d6e-a1f5-7e0b9c3d2a48",
"timestamp": "2026-09-14T16:05:22Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}{
"message": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"pagination": {
"cursor": "<string>",
"limit": 123,
"prev_cursor": "<string>",
"next_cursor": "<string>",
"total_count": 123
}
}
}