36 lines
338 B
Plaintext
36 lines
338 B
Plaintext
meta {
|
|
name: Modify user role
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
post {
|
|
url: {{url}}/api/users/5/role
|
|
body: json
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Accept: application/json
|
|
X-XSRF-TOKEN:
|
|
}
|
|
|
|
body:json {
|
|
{
|
|
"role": {{role}}
|
|
}
|
|
}
|
|
|
|
vars:pre-request {
|
|
role: 2
|
|
}
|
|
|
|
assert {
|
|
res.status: eq 200
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|