Skip to content

UpdateResourceOwner

PATCH/api/v1/resources/{resource}/owners/{owner}

Update an owner of a resource. Ownership is immutable, so this only supports creating an owner with allow_missing set.

curl -X PATCH \
-H "Authorization: Bearer ${OBLIQUE_API_KEY}" \
-H "Content-Type: application/json" \
-d '{ "owner": "string" }' \
"https://us.oblique.security/api/v1/resources/{resource}/owners/{owner}?updateMask=owner"

Set OBLIQUE_API_KEY to your API key.

  • resourceOwner.namestringrequired

    Assigned by Oblique. Name of the owner of the format resources/{resource}/owners/{owner}.

  • updateMaskstring (field-mask)

    The list of fields to update.

  • allowMissingboolean

    If set to true, and the owner is not found, a new owner will be created with the given name. If created in this way, update_mask is ignored.

  • ownerstringrequired

    Set once, when the resource is created. The owner of the resource. This can be a user, group, or team.

    Format: users/{user}, groups/{group}, teams/{team}

  • createTimestring (date-time)read-only

    Create and update timestamps.

  • updateTimestring (date-time)read-only
200ResourceOwner

A ResourceOwner is a user, team, or group that owns a resource.

  • namestring

    Assigned by Oblique. Name of the owner of the format resources/{resource}/owners/{owner}.

  • ownerstringrequired

    Set once, when the resource is created. The owner of the resource. This can be a user, group, or team.

    Format: users/{user}, groups/{group}, teams/{team}

  • createTimestring (date-time)read-only

    Create and update timestamps.

  • updateTimestring (date-time)read-only
StatusMeaning
400Malformed request
401Missing or invalid API key
403Not allowed for this API key
404Not found
429Too many requests
500Internal server error