APIComponents
Rename a component
Rename an active component while reserving its previous exact name as an alias.
Path Parameters
componentId*string
Active component ID to rename.
Format
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/components/497f6eca-6276-4993-bfeb-53cbbbba6f08/rename" \ -H "Content-Type: application/json" \ -d '{ "name": "string", "requestId": "d385ab22-0f51-4b97-9ecd-b8ff3fd4fcb6", "reason": "string" }'{ "component": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "projectId": "5a8591dd-4039-49df-9202-96385ba3eff8", "name": "string", "description": "string", "origin": "user_declared", "lifecycle": "active", "observationState": "observed", "registryRevision": 0, "canonicalComponentId": "db6a73a5-21af-4453-8aa4-72d41f15a785", "mergedIntoComponentId": "a54e76d3-7757-4ae7-813e-d2ee19ad938e", "currentStatus": "operational", "firstSeenAt": "2019-08-24T14:15:22Z", "lastSeenAt": "2019-08-24T14:15:22Z", "deletedAt": "2019-08-24T14:15:22Z", "inactiveAt": "2019-08-24T14:15:22Z", "inactiveReason": "string", "legacyStateUnknown": true }}