This page is a translation of the Japanese version. The Japanese version is authoritative; if they differ, follow the Japanese version.
所有するモデルを非公開にする
DELETE
/api/v1/models/{id}
const url = 'https://spritestack.dev/api/v1/models/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://spritestack.dev/api/v1/models/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”非公開にしたモデル
Media typeapplication/json
object
id
string
public
Example
{ "public": false}入力の形が不正
Media typeapplication/json
object
Example generated
{}認証が必要(鍵が無い・正しくない・取り消された)
Media typeapplication/json
object
Example generated
{}所有者ではない、または運営者に止められた会員
Media typeapplication/json
object
Example generated
{}公開モデルが見つからない
Media typeapplication/json
object
Example generated
{}