Box Developerドキュメント
最新バージョン

デバイスピンを削除

delete
https://api.box.com/2.0
/device_pinners/:device_pinner_id

このエンドポイントはバージョン2024.0です。引き続き使用するために 変更は必要ありません。詳細については、 **Box APIのバージョン管理**を参照してください。

個々のデバイスピンを削除します。

リクエスト

bearer [ACCESS_TOKEN]
application/json

パスパラメータ

stringパス内必須
2324234

デバイスピンのID。

レスポンス

none

ピンが削除された場合は、空のレスポンスを返します。

予期しないクライアントエラー。

delete
デバイスピンを削除
このドキュメント内で一部のAPIを試せるようになりました。
ログイン

リクエストの例

Box SDKのバージョン戦略の詳細については、 **こちら**を確認してください。


cURL
curl -i -X DELETE "https://api.box.com/2.0/device_pinners/2324234" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
Node/TypeScript v10
await client.devicePinners.deleteDevicePinnerById(devicePinnerId);
Python v10
client.device_pinners.delete_device_pinner_by_id(device_pinner_id)
.NET v10
await client.DevicePinners.DeleteDevicePinnerByIdAsync(devicePinnerId: devicePinnerId);
Swift v10
try await client.devicePinners.deleteDevicePinnerById(devicePinnerId: devicePinnerId)
Java v10
client.getDevicePinners().deleteDevicePinnerById(devicePinnerId)
Java v4
BoxDevicePin devicePin = new BoxDevicePin(api, id);
devicePin.delete();
Python v3
device_pin_id = '1111'
client.device_pin(device_pin_id).delete()
print('Device pin deleted!')
.NET v5
await client.DevicePinManager.DeleteDevicePin(id: "11111");
Node v3
client.devicePins.delete('28345')
    .then(() => {
        // deletion succeeded — no value returned
    });