Request

Response

    Delete a saved search group
    DELETE

    v2/hubs/{hubId}/saved-search-groups/{savedSearchGroupId}

    Soft-deletes a saved search group in a hub. The deletion is rejected with 409 Conflict if the group still contains one or more saved searches; those saved searches must be removed or reassigned first.

    Resource Information

    Method and URI
    DELETE
    https://api.aps.autodesk.com/content-catalog/v2/hubs/{hubId}/saved-search-groups/{savedSearchGroupId}
    Authentication Context
    user context required
    Required OAuth Scopes
    data:write
    Data Format
    JSON

    Request

    Headers

    Authorization*
    string
    Must be Bearer <token>, where <token> is a three-legged access token obtained via an Authorization Code flow or a Secure Service Account flow.

    The Secure Service Account (SSA) flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context.

    Region
    string
    Region identifier for API routing. Defaults to US if not provided.
    * Required

    Request

    URI Parameters

    hubId
    string
    Unique identifier for an individual hub (UUID format, uppercase).
    savedSearchGroupId
    string
    Unique identifier for an individual saved search group (UUID format, uppercase).

    Response

    HTTP Status Code Summary

    204
    No Content
    Saved search group deleted successfully
    400
    Bad Request
    The server was unable to process the request. The syntax of the request is malformed or the request is missing a required header. Do not repeat the request without fixing the issue. The response body may indicate what is wrong with the request.
    401
    Unauthorized
    The supplied authorization header was not valid or the supplied token scope was not acceptable. Verify authentication and try again.
    403
    Forbidden
    The request was successfully validated, but lacking the required permissions. Verify your credentials and permissions before you send the request again.
    404
    Not Found
    The requested resource was not found. Review the request and try again.
    409
    Conflict
    The saved search group still contains one or more saved searches and cannot be removed. Remove or reassign the saved searches in the group and try again.
    500
    Internal Server Error
    An unexpected error occurred on the server, preventing it from completing your request. Please try again later. If the issue persists, contact the support team for assistance.
    503
    Service Unavailable
    The service is temporarily unavailable. Retry the request after a short delay.

    Response

    Body Structure (204)

    Response for 204 has no body.

    Example

    Saved search group deleted successfully

    Request

    curl -v 'https://developer.api.autodesk.com/content-catalog/v2/hubs/757FF58F-AE23-42D8-B303-BD7B53FA2B98/saved-search-groups/6A10A175-3374-4586-BADB-182D40747ECC' \
      -X 'DELETE' \
      -H 'Authorization: '
    

    Response

    204 No Content