Separate method to create attachment for the sake of reusability #4697

No need of passing success just status code 201(record created) will do.