In this example, you are associating a tag with the newly created project. The tag is inherited onto the workloads provisioned from this project.
To associate a tag with a object, you can use a PATCH API call that uses the /iaas/api/projects/${projectId}/resource-metadata
URL.
{ "tags": [ { "key": "costCode", "value": "${costCode}" } ] }