fixup! refactor(api): moving organization API resourced based

This commit is contained in:
Iraq Jaber
2025-04-24 16:45:13 +02:00
parent aad8961bf3
commit 86f1154741

View File

@@ -138,6 +138,30 @@ service OrganizationService {
};
};
}
rpc UpdateOrganization(UpdateOrganizationRequest) returns (UpdateOrganizationResponse) {
option (google.api.http) = {
put: "/v2beta/organizations"
body: "*"
};
option (zitadel.v1.auth_option) = {
permission: "org.write"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "Organizations";
summary: "Update Organization";
description: "Change the name of the organization."
responses: {
key: "200"
value: {
description: "OK";
}
};
};
}
}
message CreateOrganizationRequest{
@@ -172,3 +196,19 @@ message CreateOrganizationResponse{
string organization_id = 2;
repeated CreatedAdmin created_admins = 3;
}
message UpdateOrganizationRequest {
string name = 1 [
(validate.rules).string = {min_len: 1, max_len: 200},
(google.api.field_behavior) = REQUIRED,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1;
max_length: 200;
example: "\"Customer 1\"";
}
];
}
message UpdateOrganizationResponse {
zitadel.v1.ObjectDetails details = 1;
}