From 2d8a62aec1ed26743a61da78fc0f4032da9c9a5e Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Thu, 5 Dec 2024 12:28:48 -0700 Subject: [PATCH] DEV: Update create user w/ custom fields api docs (#30133) Since the example specifies json use a json formatted example instead of form-data. https://meta.discourse.org/t/161413/5 --- .../requests/api/schemas/json/user_create_request.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spec/requests/api/schemas/json/user_create_request.json b/spec/requests/api/schemas/json/user_create_request.json index 92990832e57..0b37c168fb2 100644 --- a/spec/requests/api/schemas/json/user_create_request.json +++ b/spec/requests/api/schemas/json/user_create_request.json @@ -20,8 +20,14 @@ "approved": { "type": "boolean" }, - "user_fields[1]": { - "type": "boolean" + "user_fields": { + "type": "object", + "additionalProperties": true, + "properties": { + "1": { + "type": "boolean" + } + } }, "external_ids": { "type": "object"