mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:57:33 +00:00
feat(org): add org metadata functionality (#4234)
* feat(org): add org metadata functionality * fix(metadata): add unit tests and review for org metadata * fix(org-metadata): move endpoints to / Co-authored-by: Fabi <38692350+hifabienne@users.noreply.github.com>
This commit is contained in:
@@ -804,6 +804,78 @@ Sets the state of my organisation to active
|
||||
POST: /orgs/me/_reactivate
|
||||
|
||||
|
||||
### SetOrgMetadata
|
||||
|
||||
> **rpc** SetOrgMetadata([SetOrgMetadataRequest](#setorgmetadatarequest))
|
||||
[SetOrgMetadataResponse](#setorgmetadataresponse)
|
||||
|
||||
Sets a org metadata by key
|
||||
|
||||
|
||||
|
||||
POST: /metadata/{key}
|
||||
|
||||
|
||||
### BulkSetOrgMetadata
|
||||
|
||||
> **rpc** BulkSetOrgMetadata([BulkSetOrgMetadataRequest](#bulksetorgmetadatarequest))
|
||||
[BulkSetOrgMetadataResponse](#bulksetorgmetadataresponse)
|
||||
|
||||
Set a list of org metadata
|
||||
|
||||
|
||||
|
||||
POST: /metadata/_bulk
|
||||
|
||||
|
||||
### ListOrgMetadata
|
||||
|
||||
> **rpc** ListOrgMetadata([ListOrgMetadataRequest](#listorgmetadatarequest))
|
||||
[ListOrgMetadataResponse](#listorgmetadataresponse)
|
||||
|
||||
Returns the org metadata
|
||||
|
||||
|
||||
|
||||
POST: /metadata/_search
|
||||
|
||||
|
||||
### GetOrgMetadata
|
||||
|
||||
> **rpc** GetOrgMetadata([GetOrgMetadataRequest](#getorgmetadatarequest))
|
||||
[GetOrgMetadataResponse](#getorgmetadataresponse)
|
||||
|
||||
Returns the org metadata by key
|
||||
|
||||
|
||||
|
||||
GET: /metadata/{key}
|
||||
|
||||
|
||||
### RemoveOrgMetadata
|
||||
|
||||
> **rpc** RemoveOrgMetadata([RemoveOrgMetadataRequest](#removeorgmetadatarequest))
|
||||
[RemoveOrgMetadataResponse](#removeorgmetadataresponse)
|
||||
|
||||
Removes a org metadata by key
|
||||
|
||||
|
||||
|
||||
DELETE: /metadata/{key}
|
||||
|
||||
|
||||
### BulkRemoveOrgMetadata
|
||||
|
||||
> **rpc** BulkRemoveOrgMetadata([BulkRemoveOrgMetadataRequest](#bulkremoveorgmetadatarequest))
|
||||
[BulkRemoveOrgMetadataResponse](#bulkremoveorgmetadataresponse)
|
||||
|
||||
Set a list of org metadata
|
||||
|
||||
|
||||
|
||||
DELETE: /metadata/_bulk
|
||||
|
||||
|
||||
### ListOrgDomains
|
||||
|
||||
> **rpc** ListOrgDomains([ListOrgDomainsRequest](#listorgdomainsrequest))
|
||||
@@ -3805,6 +3877,28 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### BulkRemoveOrgMetadataRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| keys | repeated string | - | repeated.items.string.min_len: 1<br /> repeated.items.string.max_len: 200<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### BulkRemoveOrgMetadataResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### BulkRemoveUserGrantRequest
|
||||
|
||||
|
||||
@@ -3845,6 +3939,40 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### BulkSetOrgMetadataRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| metadata | repeated BulkSetOrgMetadataRequest.Metadata | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### BulkSetOrgMetadataRequest.Metadata
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| key | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
|
||||
| value | bytes | - | bytes.min_len: 1<br /> bytes.max_len: 500000<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### BulkSetOrgMetadataResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### BulkSetUserMetadataRequest
|
||||
|
||||
|
||||
@@ -4945,6 +5073,28 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### GetOrgMetadataRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| key | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### GetOrgMetadataResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| metadata | zitadel.metadata.v1.Metadata | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### GetPasswordAgePolicyRequest
|
||||
This is an empty request
|
||||
|
||||
@@ -5774,6 +5924,30 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### ListOrgMetadataRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| query | zitadel.v1.ListQuery | - | |
|
||||
| queries | repeated zitadel.metadata.v1.MetadataQuery | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### ListOrgMetadataResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ListDetails | - | |
|
||||
| result | repeated zitadel.metadata.v1.Metadata | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### ListPersonalAccessTokensRequest
|
||||
|
||||
|
||||
@@ -6775,6 +6949,28 @@ This is an empty response
|
||||
|
||||
|
||||
|
||||
### RemoveOrgMetadataRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| key | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### RemoveOrgMetadataResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### RemovePersonalAccessTokenRequest
|
||||
|
||||
|
||||
@@ -7648,6 +7844,29 @@ This is an empty request
|
||||
|
||||
|
||||
|
||||
### SetOrgMetadataRequest
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| key | string | - | string.min_len: 1<br /> string.max_len: 200<br /> |
|
||||
| value | bytes | - | bytes.min_len: 1<br /> bytes.max_len: 500000<br /> |
|
||||
|
||||
|
||||
|
||||
|
||||
### SetOrgMetadataResponse
|
||||
|
||||
|
||||
|
||||
| Field | Type | Description | Validation |
|
||||
| ----- | ---- | ----------- | ----------- |
|
||||
| details | zitadel.v1.ObjectDetails | - | |
|
||||
|
||||
|
||||
|
||||
|
||||
### SetPrimaryOrgDomainRequest
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user