Fixed markdown syntax

This commit is contained in:
Mario de Frutos 2016-05-17 16:47:50 +02:00
parent 6abc5a4cdd
commit 3d617a4349

View File

@ -18,6 +18,7 @@ This whole information is managed by the CartoDB Rails App too so we could make
You could use the following endpoint to know it: https://<username>.cartodb.com/api/v1/users/<user_id>?api_key=<api_key> You could use the following endpoint to know it: https://<username>.cartodb.com/api/v1/users/<user_id>?api_key=<api_key>
In the result of this endpoint you can see blocks with all the information. Eg: In the result of this endpoint you can see blocks with all the information. Eg:
``` ```
"geocoding": { "geocoding": {
"quota": 1000, "quota": 1000,
@ -30,17 +31,19 @@ In the result of this endpoint you can see blocks with all the information. Eg:
### How can I set a new quota for a user### ### How can I set a new quota for a user###
This operation could be done through the rails console: This operation could be done through the rails console:
- First you have to connect to the rails console: `bundle exec rails c` - First you have to connect to the rails console: `bundle exec rails c`
- Once in the console you have to get the target user/organization: - Once in the console you have to get the target user/organization:
- `u = User.find(username: '<username>')` - `u = User.find(username: '<username>')`
- `o = Organization.find(name: '<orgname>')` - `o = Organization.find(name: '<orgname>')`
- After we have the user/organization, we could change the quota or the hard limit flag for the desired service. I'm going to use geocoding as an example but it could be done with all the services: - After we have the user/organization, we could change the quota or the hard limit flag for the desired service. I'm going to use geocoding as an example but it could be done with all the services:
- ```
```
u.geocoding_quota = 2000 u.geocoding_quota = 2000
[u.soft_geocoding_limit = true|false] [u.soft_geocoding_limit = true|false]
u.save u.save
``` ```
- ``` ```
o.geocoding_quota = 2000 o.geocoding_quota = 2000
o.save o.save
``` ```