issuesLock
Lock an issue
PUT /repos/{owner}/{repo}/issues/{issue_number}/lock HTTP/1.1Parameters
{
"owner": {
"description": "The account owner of the repository. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"repo": {
"description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
"required": true,
"location": "path",
"type": "string"
},
"issue_number": {
"description": "The number that identifies the issue.",
"required": true,
"location": "path",
"type": "integer"
},
"lock_reason": {
"description": "The reason for locking the issue or pull request conversation. Lock will fail if you don't use one of these reasons: \n * `off-topic` \n * `too heated` \n * `resolved` \n * `spam`",
"required": false,
"location": "body",
"type": "string",
"enum": [
"off-topic",
"too heated",
"resolved",
"spam"
]
}
}