Britive platform release 2026.09.02 is now live in production.

Clone resource type

Prev Next
Post
/api/resource-manager/resource-types/{id}/clone

Clones a resource type; rotation, verification and scan settings are not cloned, so rotation and verification start disabled.

Security
HTTP
Type bearer
Path parameters
id
stringRequired

ID of the resource type to be cloned

Query parameters
options
stringRequired

Comma separated clone options - resourceType (mandatory), permissions; unknown options return 400

Body parameters

Name and description for the cloned resource type

object

Name (required) and description for a clone; everything else is copied from the source.

name
string

Name of the clone.

description
string

Description of the clone.

Responses
201

Resource type cloned completely

Expand All
object
resourceTypeId
string
name
string
description
string
createdBy
integer
updatedBy
integer
parameters
Array of object (ResourceTypeParam)
object
name
string
paramType
string

Allowed values are 'string', 'password', 'ip-cidr', 'regex-pattern', 'list(comma-separated string)'

isMandatory
boolean
Defaultfalse
resourceCount
integer
createdOn
string
updatedOn
string
207

Resource type cloned, but one or more permissions were not

Expand All
object

Body of a 207 from the resource type clone endpoint. The clone itself is always under success - a 207 means the clone exists and needs follow-up, not that it failed

success
object (ResourceTypeDto)
resourceTypeId
string
name
string
description
string
createdBy
integer
updatedBy
integer
parameters
Array of object (ResourceTypeParam)
object
name
string
paramType
string

Allowed values are 'string', 'password', 'ip-cidr', 'regex-pattern', 'list(comma-separated string)'

isMandatory
boolean
Defaultfalse
resourceCount
integer
createdOn
string
updatedOn
string
failure
object (ResourceTypeCloneFailures)

The parts of a resource type clone that did not complete, grouped by clone option

permissions
Array of object (CloneFailure)
object

One clone step that did not complete

id
string

Identifier of the object the step was operating on

name
string

Name of the object, when known

errorMessage
string
400

Bad Request

404

Resource type id does not exist