Authorizations
Body
application/json
curl --request PATCH \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"is_active": false
}'{
"success": true,
"data": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Q1 2024 Portfolio for LP",
"description": "<string>",
"short_code": "abc123xy",
"short_url": "https://www.useroulette.com/s/abc123xy",
"password_protected": true,
"expires_at": "2023-11-07T05:31:56Z",
"is_active": true,
"companies": [
{
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"permissions": "view"
}
],
"view_count": 42,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}Update shared link properties including name, password, expiration, active status, and the list of included companies.
curl --request PATCH \
--url https://www.useroulette.com/api/v1/accounts/{account_id}/shared-links/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"is_active": false
}'{
"success": true,
"data": {
"link": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Q1 2024 Portfolio for LP",
"description": "<string>",
"short_code": "abc123xy",
"short_url": "https://www.useroulette.com/s/abc123xy",
"password_protected": true,
"expires_at": "2023-11-07T05:31:56Z",
"is_active": true,
"companies": [
{
"company_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"company_name": "<string>",
"permissions": "view"
}
],
"view_count": 42,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}
}