intends.create
        
        
            Parameters
		
			| struct | user { |  | 
		
			| 
		
			| string | session | Session (as retrieved from client.loginByToken()) |  
		
			| int | userId | (optional) Managed user ID |  | 
		
			| } |  |  | 
		
			| array | intends ( |  | 
		
			| 
					
						
							
								| struct | { |  |  
								| 
		
			| int | groupId | Id of the group in which will be this intend created |  
		
			| int | intendCategoryId | Interest category id (see intends.listCategories function) |  
		
			| int | cpc | (optional) (can be null) Interest max cost per click (in halers) or nil for using the group default |  
		
			| int | cpt | (optional) (can be null) Interest max cost per impression (in halers) or nil for using the group default |  
		
			| string | status | (optional) status: 
							
								active:
								active after created
								suspend:
								suspended after created |  |  
								| } |  |  |  | 
		
			| ) |  |  | 
            Response
            
		
			| struct |  { |  | 
		
			| 
		
			| int | status | Status code (see bellow) |  
		
			| string | statusMessage | Status code description |  
		
			| string | session | (optional) Refreshed session |  
		
			| array | intendIds ( | List of new intend ids |  
			|  |  
			| ) |  |  |  
		
			| array | diagnostics ( | (optional) Various diagnostics (warnings, errors, other information) |  
			|  |  
			| ) |  |  |  | 
		
			| } |  |  | 
             
            Response status codes:
            List of all possible response status codes:
            
            
                    - 200: OK
- 206: Partially OK
- 301: User is serviced
- 400: Bad arguments
- 401: Invalid session
- 403: Access Denied
- 404: Not found
- 406: Bad values of attributes
- 413: Too many items requested.
- 429: Too many requests. Has to wait.
- 500: Server Error.
- 409: Conflict
Diagnostics:
                List of all possible diagnostics:
                
                        - bad_intend_category
- entity_already_exists
- floating_invalid_targeting
- group_access_denied
- intend_no_access
- intend_not_exist
- model_error
- not_allowed_for_campaign_type
- simple_ads_invalid_targeting
- too_big_cpc
- too_big_cpt
- too_low_cpc
- too_low_cpt
- user_access_denied