Answers.Body: <p>I think your action is way too long and possibly separated into a few words in your function name? Can you check?</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T07:48:18.113Z
Answers.Text: the full function name is civicrm_api3_chiro_contact_AssignAnimatorCourseResponsibleLabel.
  
  Is there a limit on how long these names can be?
Answers.UserDisplayName: joost
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T07:50:30.973Z
Answers.Text: I am not sure if there is any physical limit but I tend to stick to a max of 2 camel cases :-) For example createocrr. And I would not use the camel cases in the civix command, so I would have done: civix generate:api --schedule Daily chiroContact assignanimatorcourseresponsiblelabel
Answers.UserDisplayName: ErikH - CiviCooP
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T08:00:15.787Z
Answers.Text: Apparently that did it. Thank you very much
Answers.UserDisplayName: joost
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-31T07:43:50.730Z
Answers.LastActivityDate: 2017-07-31T07:43:50.730Z
Answers.UserDisplayName: ErikH - CiviCooP
Body: <p>I am using civix to create a scheduled task with </p>
  
  <pre><code>civix generate:api --schedule Daily chiroContact assignAnimatorCourseResponsibleLabel
  </code></pre>
  
  <p>The files get created correctly, and the new api possibility is shown in the api explorer, however when I try and test it the result is </p>
  
  <pre><code>    {
  
  
  "error_code": "not-found",
  "entity": "ChiroContact",
  "action": "assignanimatorcourseresponsiblelabel",
  "is_error": 1,
  "error_message": "API (ChiroContact, assignanimatorcourseresponsiblelabel) does not exist (join the API team and implement it!)"
  </code></pre>
  
  <p>}</p>
  
  <p>The sheduled task also doesn appear in the list of sheduled tasks in the system settings. Am I doing something wrong in creating this task?</p>
  
Tags: <scheduled-job><civix>
Title: creating scheduled api using civix
ThreadText: # creating scheduled api using civix
  
  (Asked by: username_0 on 2017-07-31)
  
  I am using civix to create a scheduled task with
  
  ```
  civix generate:api --schedule Daily chiroContact assignAnimatorCourseResponsibleLabel
  
  ```
  
  The files get created correctly, and the new api possibility is shown in the api explorer, however when I try and test it the result is
  
  ```
      {
  
  "error_code": "not-found",
  "entity": "ChiroContact",
  "action": "assignanimatorcourseresponsiblelabel",
  "is_error": 1,
  "error_message": "API (ChiroContact, assignanimatorcourseresponsiblelabel) does not exist (join the API team and implement it!)"
  
  ```
  
  }
  
  The sheduled task also doesn appear in the list of sheduled tasks in the system settings. Am I doing something wrong in creating this task?
  
  **Tags:** scheduled-job, civix
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-07-31. Score: 1 | Accepted answer
  
  I think your action is way too long and possibly separated into a few words in your function name? Can you check?
  
  > **Comments:**
  > **username_0**: the full function name is civicrm_api3_chiro_contact_AssignAnimatorCourseResponsibleLabel.  Is there a limit on how long these names can be?  
  > **username_1**: I am not sure if there is any physical limit but I tend to stick to a max of 2 camel cases :-) For example createocrr. And I would not use the camel cases in the civix command, so I would have done: civix generate:api --schedule Daily chiroContact assignanimatorcourseresponsiblelabel  
  > **username_0**: Apparently that did it. Thank you very much  
  
  ---
  
  