动作
删除动作
删除该动作。API 会立即对其返回 404;其文件会在 7 天宽限期后清除。
DELETE
/
v1
/
motions
/
{motion_id}
删除动作
curl --request DELETE \
--url https://apis.viggle.ai/v1/motions/{motion_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/motions/{motion_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/motions/{motion_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}授权
响应
动作已删除。响应无正文。
⌘I
删除动作
curl --request DELETE \
--url https://apis.viggle.ai/v1/motions/{motion_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apis.viggle.ai/v1/motions/{motion_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apis.viggle.ai/v1/motions/{motion_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "<string>",
"retryable": true,
"request_id": "<string>",
"details": {},
"remediation": {
"action": "none",
"retry_after_ms": 1
}
}
}