409 is a valid renaming response
This commit is contained in:
parent
a8b9ec345a
commit
67d7e28684
@ -32,7 +32,7 @@ $$
|
||||
|
||||
url = '/api/v1/databases/%s/groups/%s' % (database_name, old_group_name)
|
||||
body = '{ "name": "%s", "database_role": "%s" }' % (new_group_name, new_group_role)
|
||||
query = "select cartodb._CDB_Group_API_Request('PUT', '%s', '%s', '{200}') as response_status" % (url, body)
|
||||
query = "select cartodb._CDB_Group_API_Request('PUT', '%s', '%s', '{200, 409}') as response_status" % (url, body)
|
||||
plpy.execute(query)
|
||||
$$ LANGUAGE 'plpythonu' VOLATILE;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user