v1

latestOpenAPI 3.0.12026-07-1719674.9 KB
fabric-ca-server

Rename an affiliation.
The caller must have hf.AffiliationMgr authority.

put/api/v1/affiliations/{affiliation}

Path parameters

affiliationstring required

An affiliation path

Query parameters

castring

The name of the CA to direct this request to within the server, or the default CA if not specified

forceboolean

If any identities are associated with this affiliation, force causes these identities' affiliations to be renamed; otherwise, an error is returned

Headers

Authorizationstring required

An enrollment token consisting of two base 64 encoded parts separated by a period:

  • an enrollment certificate;
  • a signature over the HTTP method, URL path, request body, and the certificate.

Request body

namestring required

The new affiliation path.

canamestring

Name of the CA to send the request to within the Fabric CA server.

Response

List a specific affiliation equal to and below the caller's affiliation.

{"stackTrail":"components:schemas:responseBase:properties:result","oasType":"schema","type":"unknown"}
successboolean required

Boolean indicating if the request was successful.