pinsAdd
Pins an item to a channel.
Details
- Method:
POST - Path:
/pins.add - Operation ID:
pins_add
Parameters
{
"token": {
"description": "Authentication token. Requires scope: `pins:write`",
"required": true,
"location": "header",
"type": "string"
},
"channel": {
"description": "Channel to pin the item in.",
"required": true,
"location": "formData",
"type": "string"
},
"timestamp": {
"description": "Timestamp of the message to pin.",
"required": false,
"location": "formData",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Schema for successful response from pins.add method",
"properties": {
"ok": {
"enum": [
true
],
"title": "default success response",
"type": "boolean"
}
},
"required": [
"ok"
],
"title": "pins.add schema",
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('slack')
# Call this tool
result = await agent.call_tool('pinsAdd', {
# Add required parameters here
})