Set what an AI may see at one classification
PUT
/api/classifications/{key}/ai-use
const url = 'https://forge.example.com/api/classifications/example/ai-use';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"aiUse":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://forge.example.com/api/classifications/example/ai-use \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "aiUse": "example", "version": 1 }'full or off, with the classification’s version as you read it. A stale one answers 409 with currentVersion, the version it has now. For administrators.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”key
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
aiUse
required
string
version
required
null | integer | string format: int32
Example generated
{ "aiUse": "example", "version": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
key
required
string
label
required
string
rank
required
integer | string format: int32
isRestricted
required
boolean
bannerText
required
string
color
required
string
aiUse
required
string
version
required
integer | string format: int32
Example generated
{ "key": "example", "label": "example", "rank": 1, "isRestricted": true, "bannerText": "example", "color": "example", "aiUse": "example", "version": 1}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}