Skip to content

Commit 3ce7a8c

Browse files
committed
I forgot to update this. April Fools.....
1 parent 20538fc commit 3ce7a8c

1 file changed

Lines changed: 101 additions & 0 deletions

File tree

api-docs/openapi.json

Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3166,6 +3166,107 @@
31663166
}
31673167
}
31683168
},
3169+
"/registry/org/{shortname}/conversation/{index}": {
3170+
"put": {
3171+
"tags": [
3172+
"Registry Organization"
3173+
],
3174+
"summary": "Update the conversation at the given index for the given organization (accessible to Secretariat or Org Admin)",
3175+
"description": " <h2>Access Control</h2> <p>User must belong to an organization with the <b>Secretariat</b> role or be an <b>Admin</b> of the organization</p> <h2>Expected Behavior</h2> <p><b>Admin User:</b> Allowed to update only the message body of any conversation posted by them</p> <p><b>Secretariat:</b> Allowed to update the message body and/or visibility of any conversation</p>",
3176+
"operationId": "registryUserUpdateConversation",
3177+
"parameters": [
3178+
{
3179+
"name": "shortname",
3180+
"in": "path",
3181+
"required": true,
3182+
"schema": {
3183+
"type": "string"
3184+
},
3185+
"description": "The shortname of the organization"
3186+
},
3187+
{
3188+
"name": "index",
3189+
"in": "path",
3190+
"required": true,
3191+
"schema": {
3192+
"type": "string"
3193+
},
3194+
"description": "The index of the conversation to update"
3195+
},
3196+
{
3197+
"$ref": "#/components/parameters/apiEntityHeader"
3198+
},
3199+
{
3200+
"$ref": "#/components/parameters/apiUserHeader"
3201+
},
3202+
{
3203+
"$ref": "#/components/parameters/apiSecretHeader"
3204+
}
3205+
],
3206+
"responses": {
3207+
"200": {
3208+
"description": "Returns the updated conversation",
3209+
"content": {
3210+
"application/json": {
3211+
"schema": {
3212+
"$ref": "../schemas/conversation/update-conversation-response.json"
3213+
}
3214+
}
3215+
}
3216+
},
3217+
"400": {
3218+
"description": "Bad Request",
3219+
"content": {
3220+
"application/json": {
3221+
"schema": {
3222+
"$ref": "../schemas/errors/bad-request.json"
3223+
}
3224+
}
3225+
}
3226+
},
3227+
"401": {
3228+
"description": "Not Authenticated",
3229+
"content": {
3230+
"application/json": {
3231+
"schema": {
3232+
"$ref": "../schemas/errors/generic.json"
3233+
}
3234+
}
3235+
}
3236+
},
3237+
"403": {
3238+
"description": "Forbidden",
3239+
"content": {
3240+
"application/json": {
3241+
"schema": {
3242+
"$ref": "../schemas/errors/generic.json"
3243+
}
3244+
}
3245+
}
3246+
},
3247+
"404": {
3248+
"description": "Not Found",
3249+
"content": {
3250+
"application/json": {
3251+
"schema": {
3252+
"$ref": "../schemas/errors/generic.json"
3253+
}
3254+
}
3255+
}
3256+
},
3257+
"500": {
3258+
"description": "Internal Server Error",
3259+
"content": {
3260+
"application/json": {
3261+
"schema": {
3262+
"$ref": "../schemas/errors/generic.json"
3263+
}
3264+
}
3265+
}
3266+
}
3267+
}
3268+
}
3269+
},
31693270
"/org": {
31703271
"get": {
31713272
"tags": [

0 commit comments

Comments
 (0)