Skip to main content
PUT
/
connections
/
{nameOrID}
/
datamasking-rules
Update Data Masking Rule Connections
curl --request PUT \
  --url https://use.hoop.dev/api/connections/{nameOrID}/datamasking-rules \
  --header 'Content-Type: application/json' \
  --data '[
  {
    "rule_id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "status": "active"
  }
]'
[
  {
    "connection_id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "rule_id": "15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7",
    "status": "active"
  }
]

Body

application/json · object[]

The request body resource

status
enum<string>
required

The status of the data masking rule

Available options:
active,
inactive
Example:

"active"

rule_id
string

The unique identifier of the data masking rule

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

Response

OK

connection_id
string

The unique identifier of the connection

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

id
string

The unique identifier of the data masking rule connection

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

rule_id
string

The unique identifier of the data masking rule

Example:

"15B5A2FD-0706-4A47-B1CF-B93CCFC5B3D7"

status
enum<string>

The status of the data masking rule connection

Available options:
active,
inactive
Example:

"active"

I