Skip to main content
Mutation

duplicateProductionResource

Copies a resource assigned to a project into a new resource and assigns the copy to the same project. The copy does not keep the original's externalId. Requires edit access to the project. Returns the new assignment.

Arguments

  • nameString

    Name of the copy (up to 200 characters). Defaults to the original name followed by "copy".

  • projectIdID!

    ID of the project.

  • resourceIdID!

    ID of the resource to copy. It must be assigned to the project.

Returns

ProjectResourceAssignment!

Example

mutation DuplicateProductionResource($name: String, $projectId: ID!, $resourceId: ID!) {
  duplicateProductionResource(
    name: $name
    projectId: $projectId
    resourceId: $resourceId
  ) {
    id
    projectId
    resourceId
  }
}