Docs
Delete Resource Type
DELETE /resourceTypes/{assetTypeId}
DELETE
/resourceTypes/{assetTypeId}Required Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Permanently removes an asset type from the event.
An asset type cannot be deleted if it is currently in use. The following will block deletion:
- The asset type is referenced by a module template block (as an allowed asset type for a request).
- The asset type is used by an existing advance request asset.
- The asset type is used by an existing procurement asset.
Remove or update any of the above references before attempting to delete the asset type.
Event scoping: This endpoint does not include {eventId} in the URL. The event is determined automatically from your x-Event-Token.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| assetTypeId | Guid | Required | The ID of the asset type to delete. |
Response
200 OK — No response body.
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token. |
NOT_FOUND | 404 | Asset type not found on this event. |
BAD_REQUEST | 400 | Asset type is in use by a module template block, advance request, or procurement and cannot be deleted. |