Welcome, Guest Login

Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How can we delete a client from a user via API

Martin Hanzalek Nov 08, 2017 10:45AM CET

Pekny den,

jak muzeme pomoci User API (https://wiki.memsource.com/wiki/User_API_v2) smazat Clienta nastaveneho na Userovi?

Pokud pri volani api/v2/user/edit field "client" vubec neposleme, client se nesmaze a zustane na userovi dal nastaveny. Nastaveni klienta na specifickou hodnotu funguje v poradku, pouze mazani nevime, jak udelat.

Jak to muzeme udelat?

Up 0 rated Down
Daria Toshcheva Nov 08, 2017 12:35PM CET Memsource Help Center Agent

Dobrý den,

bohužel se nám to nepodářilo zreprodukovat. Naši technici se na to podívají a ozveme se.
Děkuji.

Up 0 rated Down
Martin Hanzalek Nov 08, 2017 12:40PM CET
Dobry den, klidne, at me kontaktuji primo na muj e-mail, at to urychlime. Diky.
Up 0 rated Down
Vaclav Balacek Nov 08, 2017 02:11PM CET Memsource Help Center Agent

Dobrý den,
S aktuálními API bohužel není možné hodnotu parametru odstranit, přesně tak, jak jste psali v původním mailu.
My nyní postupně publikujeme nové API a tam u callu “updateUser” tohle už možné je.

Tento konkrétní API call ještě není publikovaný v naší dokumentaci, ale bude tam snad během tohoto týdne. Každopádně je už ale funkční.

Zde je příklad volání a odpovědi:

PUT /api2/v1/users/{userId}

Request sample

{

“userName”: “string”, “firstName”: “string”, “lastName”: “string”, “email”: “string”, “role”: “SYS_ADMIN”, “timezone”: “string”, “note”: “string”, “terminologist”: true, “sourceLangs”:

[

“string”

],
“targetLangs”:

[

“string”

],
“active”: true,
“workflowSteps”:

[

{}

],
“clients”:

[

{}

],
“domains”:

[

{}

],
“subDomains”:

[

{}

],
“projectBusinessUnits”:

[

{} ]

}

Response samples

200 successful operation

{

“id”: “string”, “userName”: “string”, “firstName”: “string”, “lastName”: “string”, “email”: “string”, “dateCreated”: “2017-11-08T13:05:19Z”, “dateDeleted”: “2017-11-08T13:05:19Z”, “createdBy”:

{

“firstName”: “string”, “lastName”: “string”, “userName”: “string”, “email”: “string”, “role”: “SYS_ADMIN”, “id”: “string”

},
“role”: “SYS_ADMIN”,
“timezone”: “string”,
“note”: “string”,
“terminologist”: true,
“sourceLangs”:

[

“string”

],
“targetLangs”:

[

“string”

],
“workflowSteps”:

[

{}

],
“clients”:

[

{}

],
“domains”:

[

{}

],
“subDomains”:

[

{}

],
“projectBusinessUnits”:

[

{}

],
“organization”:

{ “id”: “string” }, “active”: true

}

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
support@memsource.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete