Skip to content

Commit

Permalink
Update caliban_toolbox/figure_eight_functions.py
Browse files Browse the repository at this point in the history
Co-authored-by: willgraf <7930703+willgraf@users.noreply.github.com>
  • Loading branch information
MekWarrior and willgraf committed Jun 10, 2020
1 parent 8b98c5c commit 5a6e097
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions caliban_toolbox/figure_eight_functions.py
Expand Up @@ -136,14 +136,14 @@ def rename_job(job_id, key, name):
job_id: ID number of job to rename
key: API key to access Figure 8 account
name: new name for job
"""
"""

payload = {
'key': key,
'job': {'title': name}}

response = requests.put(
'https://api.appen.com/v1/jobs/{}.json'.format(job_id), jason=payload)
'job': {'title': name}
}
url = 'https://api.appen.com/v1/jobs/{}.json'.format(job_id)
response = requests.put(url, json=payload)


def upload_log_file(log_file, job_id, key):
Expand Down

0 comments on commit 5a6e097

Please sign in to comment.