mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:17:32 +00:00
fix: uniqueness (#1710)
* fix: uniqueconstraint to lower * feat: change org * feat: org change test * feat: change org * fix: tests * fix: handle domain claims correctly * feat: update org Co-authored-by: fabi <fabienne.gerschwiler@gmail.com>
This commit is contained in:
@@ -616,6 +616,18 @@ service ManagementService {
|
||||
};
|
||||
}
|
||||
|
||||
// Changes my organisation
|
||||
rpc UpdateOrg(UpdateOrgRequest) returns (UpdateOrgResponse) {
|
||||
option (google.api.http) = {
|
||||
put: "/orgs/me"
|
||||
body: "*"
|
||||
};
|
||||
|
||||
option (zitadel.v1.auth_option) = {
|
||||
permission: "org.write"
|
||||
};
|
||||
}
|
||||
|
||||
// Sets the state of my organisation to deactivated
|
||||
// Users of this organisation will not be able login
|
||||
rpc DeactivateOrg(DeactivateOrgRequest) returns (DeactivateOrgResponse) {
|
||||
@@ -2548,6 +2560,14 @@ message AddOrgResponse {
|
||||
zitadel.v1.ObjectDetails details = 2;
|
||||
}
|
||||
|
||||
message UpdateOrgRequest {
|
||||
string name = 1 [(validate.rules).string = {min_len: 1, max_len: 200}];
|
||||
}
|
||||
|
||||
message UpdateOrgResponse {
|
||||
zitadel.v1.ObjectDetails details = 1;
|
||||
}
|
||||
|
||||
//This is an empty request
|
||||
message DeactivateOrgRequest {}
|
||||
|
||||
|
Reference in New Issue
Block a user