00c653316d35

latestOpenAPI 3.0.32026-08-13154321638.4 KB
Harbors

Assign Harbor User

Assigns an existing Harbor-only user to a Harbor.

The assignment is idempotent. Regular Polytomic users cannot be assigned because they already have application access to Harbors.

put/api/harbors/{harbor_id}/users/{user_id}

Path parameters

harbor_idstring uuid required

Unique identifier of the Harbor.

Example:248df4b7-aa70-47b8-a036-33ac447e668d

Unique identifier of the Harbor.

user_idstring uuid required

Unique identifier of the Harbor-only user.

Example:248df4b7-aa70-47b8-a036-33ac447e668d

Unique identifier of the Harbor-only user.

Headers

X-Polytomic-Versionstring

Response

OK

Example response

{
  "data": {
    "email": "analyst@example.com",
    "harbor_ids": [
      "248df4b7-aa70-47b8-a036-33ac447e668d"
    ],
    "id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "organization_id": "248df4b7-aa70-47b8-a036-33ac447e668d",
    "status": "invited"
  }
}