CreateTagDefault

POST {{baseUrl}}/tagDefaults

Creates a new tag default in the specified compartment for the specified tag definition.

If you specify that a value is required, a value is set during resource creation (either by the user creating the resource or another tag defualt). If no value is set, resource creation is blocked.

  • If the isRequired flag is set to true, the value is set during resource creation.
  • If the isRequired flag is set to false, the value you enter is set during resource creation.

Request Body

{"compartmentId"=>"{{tenancy_ocid}}", "tagDefinitionId"=>"anim in", "value"=>"esse minim id", "isRequired"=>true}

HEADERS

KeyDatatypeRequiredDescription
opc-retry-tokenstringA token that uniquely identifies a request so it can be retried in case of a timeout or
server error without risk of executing that same action again. Retry tokens expire after 24
hours, but can be invalidated before then due to conflicting operations (e.g., if a resource
has been deleted and purged from the system, then a retry of the original creation request
may be rejected).
opc-request-idstringUnique Oracle-assigned identifier for the request. If you need to contact Oracle about a
particular request, please provide the request ID.
Content-Typestring
Datestring(Required) Current Date
Authorizationstring(Required) Signature Authentication on Authorization header
x-content-sha256string(Required) Content sha256 for POST, PUT and PATCH operations

RESPONSES

status: OK

{"id":"amet ullamco occaecat","compartmentId":"est nulla dolore","tagNamespaceId":"velit irure","tagDefinitionId":"anim Ut","tagDefinitionName":"commodo ullamco","value":"ut commodo sunt aliquip do","timeCreated":"1992-08-14T14:34:14.115Z","isRequired":false,"lifecycleState":"ACTIVE"}