Endpoints
resolve_comment
Resolve your own comment without changing the file.
Request
Authentication is required by the published contract.
curl -X POST 'https://api.ursy.cloud/v1/files/{file_id}/comments/{comment_id}/resolve' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer YOUR_SERVICE_TOKEN'- Scopes
- Not specified by this operation
- Execution
- At the owning service
- Risk classification
- not declared
Parameters
file_id path · string requiredSee the accepted schema for constraints.
comment_id path · string requiredSee the accepted schema for constraints.
If-Match header · string requiredSee the accepted schema for constraints.
Idempotency-Key header · string requiredSee the accepted schema for constraints.
This operation is documented here. Use the owning service with the appropriate credentials and permissions to execute it.
Response schemas and request body
{
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false
}
}
}
},
"responses": {
"200": {
"description": "Typed operation result; request_id correlates the request.",
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": true,
"properties": {
"comment": {
"type": "object",
"additionalProperties": false,
"properties": {
"id": {
"type": "string",
"pattern": "^cmt_[1-9][0-9]*$"
},
"file_id": {
"type": "string",
"pattern": "^file_[1-9][0-9]{0,14}$"
},
"text": {
"type": "string",
"maxLength": 5000,
"x-ursy-maxBytes": 5000
},
"anchor": {
"type": "object",
"additionalProperties": false,
"properties": {
"block_id": {
"type": "string",
"maxLength": 64,
"x-ursy-maxBytes": 64
},
"slide_id": {
"type": "string",
"maxLength": 64,
"x-ursy-maxBytes": 64
},
"range": {
"type": "string",
"maxLength": 30,
"x-ursy-maxBytes": 30
}
}
},
"actor": {
"type": "object",
"additionalProperties": true
},
"status": {
"type": "string",
"enum": [
"open",
"resolved"
]
},
"etag": {
"type": "string",
"pattern": "^\"[a-f0-9]{64}\"$"
},
"created_at": {
"type": "string"
},
"updated_at": {
"type": "string"
},
"resolved_at": {
"oneOf": [
{
"type": "string"
},
{
"type": "null"
}
]
}
},
"required": [
"id",
"file_id",
"text",
"anchor",
"actor",
"status",
"etag",
"created_at",
"updated_at",
"resolved_at"
]
},
"content_is_untrusted": {
"const": true
},
"request_id": {
"type": "string"
},
"replayed": {
"type": "boolean"
}
},
"required": [
"comment",
"content_is_untrusted"
]
}
}
}
},
"default": {
"description": "Stable error envelope. 401 invalid/expired/revoked grant; 403 missing scope; 404 unavailable resource; 409 plan/idempotency conflict; 412 stale ETag; 413 size/quota; 429 rate limit.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
}
}
}